package com.zwh.autoconfigure.web;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author monkey
 * @date 2021/2/24 14:49
 **/
@Component
public class MyApplicationContextAware implements ApplicationContextAware {

    private String hah;

    public MyApplicationContextAware() {
        this.hah = "123";
    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.hah = "123";
    }
}
